﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Entity;
namespace BLL
{
    public class L_BooksBLL
    {
        //图书类别信息展示
        public static List<BookType> SeleteMessage()
        {
            return L_BooksDAL.SeleteMessage();
        }
        //添加图书类别信息
        public static void AddType(BookType bt)
        {
            L_BooksDAL.AddType(bt);
        }
           //添加图书信息
        public static void AddBook(BookInformatica BF)
        {
            L_BooksDAL.AddBook(BF);
        }
        //修改图书类别信息
        public static List<BookType> UpdateTypeMessage(BookType bt)
        {
            return L_BooksDAL.UpdateTypeMessage(bt);
        }
        //修改图书类别信息
        public static void UpdateType(BookType BT)
        {
            L_BooksDAL.UpdateType(BT);
        }
        //图书信息展示
        public static List<BookInformatica> SeleteBookMessage()
        {
            return L_BooksDAL.SeleteBookMessage();

        }
        public static List<BookInformatica> SeleteBookMessages(BookInformatica bf)
        {
            return L_BooksDAL.SeleteBookMessages(bf);

        }
        //修改图书信息
        public static List<BookInformatica> UpdateBooks(BookInformatica bf)
        {
            return L_BooksDAL.UpdateBooks(bf);
        }
        //修改图书信息
        public static void UpdateBooksMessage(BookInformatica bf)
        {
            L_BooksDAL.UpdateBooksMessage(bf);
        }
        //模糊查询已上架书籍
        public static List<BookInformatica> SBooks()
        {
            return L_BooksDAL.SBooks();
        }
        //模糊查询已下架书籍
        public static List<BookInformatica> SBook()
        {
            return L_BooksDAL.SBook();
        }
        //图书信息反馈
        public static List<FeedBack> SelectFeedBook() 
        {
            return L_BooksDAL.SelectFeedBook();
        }
        public static void UpdateFeedBack(FeedBack f)
        {
            L_BooksDAL.UpdateFeedBack(f);
        }
    }
}
